<template>
  <div class='xtx-bread'>
    <slot></slot>
  </div>
</template>

<script>
import { provide } from '@vue/runtime-core'
export default {
  name: 'XtxBread',
  props: {
    separator: { type: String, default: '<' }
  },
  setup (props) {
    // 定义数据
    provide('separator', props.separator)
  }
}
</script>

<style scoped lang='less'>

  .xtx-bread{
  display: flex;
  padding: 25px 10px;

// 最后一个i隐藏
  ::v-deep i:nth-last-child(1){
    display: none;
  }
}
</style>
